from_bytes

pure static function from_bytes(value: byte_array): big_integer

Create a big_integer from a byte array.

The byte array is interpreted with the first bit representing the sign (two's complement), and for subsequent bits, more significant bits are on the left and less significant bits are on the left (big-endian).

Inverse of big_integer.to_bytes().

Since

0.12.0

Parameters

value

the byte array to convert

Throws

exception

if the byte array is empty